package com.mike.spring.IOC.plugin.BeanFactoryPostProcessor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * 容器初始化阶段
 * @see org.springframework.beans.factory.BeanFactory 需要手动添加：
 * @see  org.springframework.beans.factory.config.BeanFactoryPostProcessor#postProcessBeanFactory(ConfigurableListableBeanFactory)
 * @see org.springframework.context.ApplicationContext 自动注入
 * 使用实例：
 * @see
 */
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
        System.out.println("BeanFactoryPostProcessor = [" + configurableListableBeanFactory + "]");
    }
}
